package cn.huixh.blindbox.common;

/**
 * 全局变量
 *
 * @author huixh
 * @version 1.0
 * @date 2022/5/7 13:37
 */
@SuppressWarnings("all")
public class Common {
    /**
     * 验证码全局字符模板
     */
    public static final String CODE_TEMP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
    /**
     * jwt key
     */
    public static final String JWT_KEY = "r0hbfxARP7S3";

    /**
     * 分钟
     */
    public static final Integer MINUTE = 60;

    /**
     * 小时
     */
    public static final Integer HOUR = 60 * MINUTE;

    /**
     * 天
     */
    public static final Integer DAY = 24 * HOUR;

    /**
     * token 过期时间
     */
    public static final Integer EXPIRE_TIME = DAY;

    /**
     * 用户创建者前缀
     */
    public static final String AUTHOR_USER = "user-";

    /**
     * 管理员创建者前缀
     */
    public static final String AUTHOR_ADMIN = "admin-";

    /**
     * 系统前缀
     */
    public static final String AUTHOR_SYSTEM = "system";

    /**
     * token 请求头
     */
    public static final String TOKEN_KEY = "X-Token";

    /**
     * 男
     */
    public static final String MAN = "MAN";

    /**
     * 女
     */
    public static final String WOMAN = "WOMAN";
}
